.class Les/ax$t;
.super Ljava/lang/Object;
.source "UIControllerImpl.java"

# interfaces
.implements Landroidx/core/view/MenuItemCompat$OnActionExpandListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/ax;->c(Landroid/view/Menu;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/ax;


# direct methods
.method constructor <init>(Les/ax;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/ax$t;->a:Les/ax;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onMenuItemActionCollapse(Landroid/view/MenuItem;)Z
    .locals 2

    .line 1
    iget-object p1, p0, Les/ax$t;->a:Les/ax;

    const/4 v0, 0x0

    invoke-static {p1, v0}, Les/ax;->c(Les/ax;Z)Z

    .line 2
    iget-object p1, p0, Les/ax$t;->a:Les/ax;

    const/4 v1, 0x0

    invoke-static {p1, v1}, Les/ax;->a(Les/ax;Ljava/lang/String;)Ljava/lang/String;

    .line 3
    iget-object p1, p0, Les/ax$t;->a:Les/ax;

    iget-object p1, p1, Les/zw;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Z()Lcom/estrongs/android/view/FileGridViewWrapper;

    move-result-object p1

    if-nez p1, :cond_0

    return v0

    .line 4
    :cond_0
    iget-object v0, p0, Les/ax$t;->a:Les/ax;

    invoke-static {v0}, Les/ax;->c(Les/ax;)Landroidx/appcompat/widget/SearchView;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroidx/appcompat/widget/SearchView;->setOnQueryTextListener(Landroidx/appcompat/widget/SearchView$OnQueryTextListener;)V

    .line 5
    iget-object v0, p0, Les/ax$t;->a:Les/ax;

    invoke-static {v0}, Les/ax;->g(Les/ax;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 6
    invoke-virtual {p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->q0()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 7
    invoke-virtual {p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->S()V

    .line 8
    :cond_1
    iget-object p1, p0, Les/ax$t;->a:Les/ax;

    iget-object p1, p1, Les/zw;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->L()V

    .line 9
    :cond_2
    iget-object p1, p0, Les/ax$t;->a:Les/ax;

    const/4 v0, 0x1

    invoke-static {p1, v0}, Les/ax;->a(Les/ax;Z)Z

    .line 10
    iget-object p1, p0, Les/ax$t;->a:Les/ax;

    new-instance v1, Les/ax$t$b;

    invoke-direct {v1, p0}, Les/ax$t$b;-><init>(Les/ax$t;)V

    invoke-virtual {p1, v1}, Les/zw;->a(Ljava/lang/Runnable;)V

    return v0
.end method

.method public onMenuItemActionExpand(Landroid/view/MenuItem;)Z
    .locals 4

    .line 1
    iget-object p1, p0, Les/ax$t;->a:Les/ax;

    const/4 v0, 0x1

    invoke-static {p1, v0}, Les/ax;->c(Les/ax;Z)Z

    .line 2
    iget-object p1, p0, Les/ax$t;->a:Les/ax;

    iget-object p1, p1, Les/zw;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Z()Lcom/estrongs/android/view/FileGridViewWrapper;

    move-result-object p1

    const/4 v1, 0x0

    if-nez p1, :cond_0

    return v1

    .line 3
    :cond_0
    invoke-virtual {p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object p1

    .line 4
    iget-object v2, p0, Les/ax$t;->a:Les/ax;

    new-instance v3, Les/ax$t$a;

    invoke-direct {v3, p0}, Les/ax$t$a;-><init>(Les/ax$t;)V

    invoke-virtual {v2, v3}, Les/zw;->a(Ljava/lang/Runnable;)V

    .line 5
    iget-object v2, p0, Les/ax$t;->a:Les/ax;

    iget-object v2, v2, Les/zw;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v2, p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->g(Ljava/lang/String;)Z

    .line 6
    iget-object p1, p0, Les/ax$t;->a:Les/ax;

    invoke-static {p1}, Les/ax;->d(Les/ax;)Landroid/view/MenuItem;

    move-result-object p1

    invoke-interface {p1}, Landroid/view/MenuItem;->getSubMenu()Landroid/view/SubMenu;

    move-result-object p1

    const/4 v2, 0x2

    .line 7
    invoke-interface {p1, v2, v1}, Landroid/view/SubMenu;->setGroupVisible(IZ)V

    const/4 v2, 0x3

    .line 8
    invoke-interface {p1, v2, v1}, Landroid/view/SubMenu;->setGroupVisible(IZ)V

    .line 9
    iget-object v2, p0, Les/ax$t;->a:Les/ax;

    iget-object v2, v2, Les/zw;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v2}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Z()Lcom/estrongs/android/view/FileGridViewWrapper;

    move-result-object v2

    instance-of v2, v2, Lcom/estrongs/android/ui/homepage/i;

    const/4 v2, 0x4

    .line 10
    invoke-interface {p1, v2, v1}, Landroid/view/SubMenu;->setGroupVisible(IZ)V

    .line 11
    invoke-interface {p1, v0, v1}, Landroid/view/SubMenu;->setGroupVisible(IZ)V

    .line 12
    iget-object p1, p0, Les/ax$t;->a:Les/ax;

    invoke-static {p1}, Les/ax;->e(Les/ax;)V

    return v0
.end method
